public class Cat {
    String name;
    String color;
    int age;
    double kg;
    double price;

    public void getname(){
        System.out.println("名字是："+name);
    }
    public void getcolor(){
        System.out.println("颜色是："+color);
    }
    public void move(){
        System.out.println("我是可以移动的");
    }

    public void enjoy(){
        System.out.println("我很高兴");
    }

    public class Bird extends Cat{
        private int number;
        public Bird(int number) {
            this.number = number;
        }

        @Override
        public void move() {
            System.out.println("我是可以飞的");
            super.move();
        }

        @Override
        public void enjoy() {
            System.out.println("我很高兴，啾啾啾" );
            super.enjoy();
        }
    }

}